//
//  DZQualityContentCell.m
//  DaoZiJinFu
//
//  Created by dzjf on 2017/1/13.
//  Copyright © 2017年 dzjf. All rights reserved.
//

#import "DZQualityContentCell.h"

@implementation DZQualityContentCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    _allAmount.textColor = DEFAULTCOLOR;
    _allAmount.text = @"不限购买";
    _repaymentStyle.textColor = DEFAULTCOLOR;
    _repaymentStyle.text = @"购买后第二天开始计息";
    _insurance.textColor = DEFAULTCOLOR;
    _insurance.adjustsFontSizeToFitWidth = YES;
    _insurance.text = @"到期还本付息，返还到账户余额";
}

- (void)setModel:(DZQualityModel *)model {
    if(!model)return;
    _repaymentStyle.text = model.payment;
    _insurance.text = model.safe;
    _allAmount.text = [NSString stringWithFormat:@"%.0f元",model.borrow_account];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
